<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<table class="cntable table table-bordered dataTable table-inventory">
	<thead>
		<tr>
			<th style="width:50px">序号</th>
			<th style="width:120px">盘点单号</th>
			<th style="width:120px">盘点时间</th>
			<th style="width:120px">发起人</th>
			<th style="width:120px">盘盈数</th>
			<th style="width:120px">盘亏数</th>
			<th style="width:120px">状态</th>
			<th style="width:120px">类型</th>
			<th>备注</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="inventory" items="${inventorys}" varStatus="status">
			<c:set value="" var="trColor" />
			<tr data-id="${inventory.inventoryId}" data-state="${inventory.inventoryState}">
				<td>${status.index+1}</td>
				<td>${inventory.inventoryNo}</td>
				<td><fmt:formatDate value="${inventory.createDate}" type="date" dateStyle="default" pattern="yyyy-MM-dd"/></td>
				<td>${inventory.createUserName}</td>
				<td>${inventory.overageNum}</td>
				<td>${inventory.lossNum}</td>
				<c:if test="${inventory.inventoryState=='1'}">
					<td>盘点中</td>
				</c:if>
				<c:if test="${inventory.inventoryState=='2'}">
					<td>已完成</td>
				</c:if>
				<c:if test="${inventory.inventoryType=='inventory'}">
					<td>多人盘点</td>
				</c:if>
				<c:if test="${inventory.inventoryType=='adjustment'}">
					<td>单人盘点</td>
				</c:if>
				<td>${inventory.comment}</td>

			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<th class="pager-th">
				<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>